import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import './rem.js'
import Vant from 'vant';
import './mock/mock'
import 'vant/lib/index.css';
import axios from  'axios'
import VueLazyLoad from 'vue-lazyload'
import '../src/assets/font/iconfont.css'
import '../src/assets/font/iconfont.js'
Vue.use(Vant);
Vue.config.productionTip = false
Vue.prototype.$axios =axios
Vue.use(VueLazyLoad, { // 注意：此项一定要写在new Vue（{}）之前，否则会报错：[Vue warn]: Failed to resolve directive: lazy
  preload: 1.3, // 预加载高度比例
  error: '', // 图片路径出错时加载图片 此处
  loading: '', // 预加载图片
  attempt: 6, // 尝试加载图片数量
  observer: true,
  observerOptions: {
    rootMargin: '0px',
    threshold: 0.1
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
